package eg12_4;

public class main {
    public static void main(String[] args) {
        System.out.println("主线程开始运行");
        subtread th1 = new subtread();
        th1.setName("thread1");
        th1.setPriority(Thread.MIN_PRIORITY);
        subtread th2 = new subtread();
        th2.setName("thread2");
        th2.setPriority(Thread.MAX_PRIORITY);
        th1.start();
        th2.start();
        System.out.println("主线程运行结束");
    }
}
